<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>案例：表格操作</title>
</head>
<body>
    <table border="1">
        <thead>
            <tr>
                <th>序号</th>
                <th>任务单号</th>
                <th>企业名称</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>1</td>
                <td>20250507014</td>
                <td>清丰垃圾处理场</td>
                <td>
                    <input type="button" value="删除" class="delete">
                </td>
            </tr>
            <tr>
                    <td>2</td>
                    <td>20250507015</td>
                    <td>南乐垃圾处理场</td>
                    <td>
                        <input type="button" value="删除" class="delete">
                    </td>
                </tr>
            <tr>
                    <td>3</td>
                    <td>20250507016</td>
                    <td>濮阳县垃圾处理场</td>
                    <td>
                        <input type="button" value="删除" class="delete">
                    </td>
                </tr>
            <tr>
                    <td>4</td>
                    <td>20250507017</td>
                    <td>台前县垃圾处理场</td>
                    <td>
                        <input type="button" value="删除" class="delete">
                    </td>
                </tr>
        </tbody>
    </table>
<script src="static/js/jquery-3.7.1.min.js"></script>
<script type="text/javascript">
    $(function (){
        $(".delete").click(function (){
            $(this).parent().parent().remove()
        })
    })
</script>
</body>
</html>